package model;

/**
 * @author Jagadeesh
 */
public class UserBean {

    private String fullName;
    private String userName;
    private String password;
    private String dateOfBirth;
    private String email;
    private String phoneNo;
    private String idTabel, namaTabel, provinsi, kabupaten, kecamatan, desa, idGudangAdmin;
    private String idSenjata, namaSenjata, jenis, idGudang, thnDibuat, thnDibeli, status, idJenis, namaJenis;
    private String idGgudang,namaGudang,idStatus,namaStatus;
            
    //for validation error messages
    private String fullNameError;
    private String userNameError;
    private String passwordError;
    private String dateOfBirthError;
    private String emailError;
    private String phoneNoError;
    private boolean isValid;
    //this is for action means edit or submit or delete or update
    private String action;

    //construtor.it is invoked when we run jsp page.
    //so first time no values will display in jsp page
    public UserBean() {
        fullName = "";
        userName = "";
        password = "";
        dateOfBirth = "";
        email = "";
        phoneNo = "";
        idSenjata = "";
        namaSenjata= "";
        jenis = "";
        idGudang= "";
        thnDibuat = "";
       thnDibeli= "";
       status = "";
               
        fullNameError = "";
        userNameError = "";
        passwordError = "";
        dateOfBirthError = "";
        emailError = "";
        phoneNoError = "";

        action = "submit";
    }

    public String getKabupaten() {
        return kabupaten;
    }

    public String getProvinsi() {
        return provinsi;
    }

    public void setProvinsi(String provinsi) {
        this.provinsi = provinsi;
    }

    public void setKabupaten(String kabupaten) {
        this.kabupaten = kabupaten;
    }

    public String getKecamatan() {
        return kecamatan;
    }

    public void setKecamatan(String kecamatan) {
        this.kecamatan = kecamatan;
    }

    public String getDesa() {
        return desa;
    }

    public void setDesa(String desa) {
        this.desa = desa;
    }

    public String getIdTabel() {
        return idTabel;
    }

    public void setIdTabel(String idTabel) {
        this.idTabel = idTabel;
    }

    public String getNamaTabel() {
        return namaTabel;
    }

    public void setNamaTabel(String namaTabel) {
        this.namaTabel = namaTabel;
    }

    public String getDateOfBirth() {
        return dateOfBirth;
    }

    public void setDateOfBirth(String dateOfBirth) {
        this.dateOfBirth = dateOfBirth;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhoneNo() {
        return phoneNo;
    }

    public void setPhoneNo(String phoneNo) {
        this.phoneNo = phoneNo;
    }

    public String getfullName() {
        return fullName;
    }

    public void setfullName(String fullName) {
        this.fullName = fullName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPasswordError() {
        return passwordError;
    }

    public void setPasswordError(String passwordError) {
        this.passwordError = passwordError;
    }

    public String getfullNameError() {
        return fullNameError;
    }

    public void setfullNameError(String fullNameError) {
        this.fullNameError = fullNameError;
    }
    //setter and getter methods for errors

    public String getUserNameError() {
        return userNameError;
    }

    public void setUserNameError(String userNameError) {
        this.userNameError = userNameError;
    }

    public String getDateOfBirthError() {
        return dateOfBirthError;
    }

    public void setDateOfBirthError(String dateOfBirthError) {
        this.dateOfBirthError = dateOfBirthError;
    }

    public String getEmailError() {
        return emailError;
    }

    public void setEmailError(String emailError) {
        this.emailError = emailError;
    }

    public String getPhoneNoError() {
        return phoneNoError;
    }

    public void setPhoneNoError(String phoneNoError) {
        this.phoneNoError = phoneNoError;
    }

     public String getIdJenis() {
        return idJenis;
    }

    public void setIdJenis(String idJenis) {
        this.idJenis = idJenis;
    }

     public String getNamaJenis() {
        return namaJenis;
    }

    public void setNamaJenis(String namaJenis) {
        this.namaJenis = namaJenis;
    }
    
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

   
    public String getIdGudang() {
        return idGudang;
    }

    public void setIdGudang(String idGudang) {
        this.idGudang = idGudang;
    }

    public String getThnDibuat() {
        return thnDibuat;
    }

    public void setThnDibuat(String thnDibuat) {
        this.thnDibuat = thnDibuat;
    }

    public String getThnDibeli() {
        return thnDibeli;
    }

    public void setThnDibeli(String thnDibeli) {
        this.thnDibeli = thnDibeli;
    }

        public String getIdSenjata() {
        return idSenjata;
    }

    public void setIdSenjata(String idSenjata) {
        this.idSenjata = idSenjata;
    }
    
    public String getNamaSenjata() {
        return namaSenjata;
    }

    public void setNamaSenjata(String namaSenjata) {
        this.namaSenjata = namaSenjata;
    }

    public String getJenis() {
        return jenis;
    }

    public void setJenis(String jenis) {
        this.jenis = jenis;
    }
    
    public String getIdGgudang() {
        return idGgudang;
    }

    public void setIdGgudang(String idGgudang) {
        this.idGgudang = idGgudang;
    }
    
    public String getNamaGudang() {
        return namaGudang;
    }

    public void setNamaGudang(String namaGudang) {
        this.namaGudang = namaGudang;
    }
     public String getIdStatus() {
        return idStatus;
    }

    public void setIdStatus(String idStatus) {
        this.idStatus = idStatus;
    }
    
    public String getNamaStatus() {
        return namaStatus;
    }

    public void setNamaStatus(String namaStatus) {
        this.namaStatus = namaStatus;
    }
    
    public String getIdGudangAdmin() {
        return idGudangAdmin;
    }

    public void setIdGudangAdmin(String idGudangAdmin) {
        this.idGudangAdmin = idGudangAdmin;
    }
    public boolean getIsValid() {
        return isValid;
    }

    public void setIsValid(boolean isValid) {
        this.isValid = isValid;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }
}
